Since commit
a3db9093834, the `result` variable holds the
destructured result of the D-Bus call, not the results array
as previously.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2472>
try {
const [result] = await this._proxy.CanRebootToBootLoaderMenuAsync();
- needsAuth = result[0] === 'challenge';
- canRebootToBootLoaderMenu = needsAuth || result[0] === 'yes';
+ needsAuth = result === 'challenge';
+ canRebootToBootLoaderMenu = needsAuth || result === 'yes';
} catch (error) {
canRebootToBootLoaderMenu = false;
needsAuth = false;